<template>
    <div ref="sheetmain" class="bk_full_wapper"></div>
</template>
<script>
import '@/components/x-spreadsheet/xspreadsheet.css'
import '../../styles/index.scss'
export default {
  data() {
    return {
      workbook: null
    }
  },
  created() {
    const $t = this
    setTimeout(function() {
      const option = {
        showToolbar: true,
        showGrid: true,
        height: $t.$refs.sheetmain.clientHeight,
        width: $t.$refs.sheetmain.clientWidth
      }
      $t.workbook = x_spreadsheet($t.$refs.sheetmain, option)
    }, 20)
  }
}
</script>
